'use strict';

const Koa = require('koa');
const vhost = require('../index');
const app1 = require('./app1');
const app2 = require('./app2');

const app = new Koa();

app.use(vhost({
  'localhost': app1,
  '127.0.0.1': app2
}));

app.listen(3001);